home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / eiffel / eiffel_p.z / eiffel_p / ep / Makefile < prev    next >
Encoding:
Makefile  |  1992-12-09  |  2.5 KB  |  74 lines

  1. # *************************************************************************
  2. # *                                                                       *
  3. # *  Makefile for                                                         *
  4. # *                                                                       *
  5. # *  ep                                                    *
  6. # *                                                                       *
  7. # *  Burgahrdt Groeber, 9/12/92
  8. # *************************************************************************
  9.  
  10. # Choose a suitable C compiler
  11. CC    = cc
  12.  
  13. # Choose flags for the C compiler(e.g. "-O2" for optimization)
  14. CFLAGS    = 
  15.  
  16. # The place to install the binaries, will be created if not existing!
  17. BIN    = $(HOME)/bin
  18.  
  19. # Directory for man pages, will be created if not existing!
  20. MANDIR    = $(HOME)/man/manl
  21.  
  22. ###########################################################################
  23. # NO CHANGES BELOW THIS LINE
  24.  
  25. # The man page
  26. MANPAGE = ep.l
  27.  
  28.  
  29. RBINS    =  System.o General.o Memory.o DynArray.o StringMem.o Idents.o Sets.o \
  30.        Time.o Errors.o Positions.o 
  31. PBINS    =  EiffelScan.o EiffelScanSource.o ParserDrv.o ParserISE.o ParserMEY.o \
  32.        ParserSIG.o Tree.o Merge.o
  33. BASICS    = Idents.h Sets.h System.h Time.h Errors.h Defs.h
  34.  
  35. all: ep
  36.  
  37. ep: $(PBINS) $(RBINS)
  38.     $(CC) $(CFLAGS) $(PBINS) $(RBINS) -o ep
  39.  
  40. install:
  41.     sh -c "if test ! -d $(BIN); then mkdir $(BIN); else true; fi"
  42.     cp ep $(BIN); chmod 755 $(BIN)/ep;
  43.     sh -c "if test ! -d $(MANDIR); then mkdir $(MANDIR); else true; fi"
  44.     cp $(MANPAGE) $(MANDIR); chmod a+r $(MANDIR)/$(MANPAGE);
  45.  
  46. test:    
  47.     $(BIN)/ep -MEY Test/TestMEY.e
  48.  
  49. example: Examples/gett.o $(RBINS)
  50.     $(CC) $(CFLAGS) -o Examples/gett  Examples/gett.c Tree.o $(RBINS)
  51.  
  52. clean:
  53.     rm -f *.o ep core Test/*.atr 
  54.     rm -f Examples/gett Examples/gett.o Examples/core
  55.  
  56. DynArray.o:     DynArray.h Memory.h ratc.h
  57. General.o:      General.h ratc.h
  58. Idents.o:       Idents.h StringMem.h DynArray.h ratc.h
  59. Memory.o:       Memory.h System.h General.h ratc.h
  60. Sets.o:         Sets.h DynArray.h General.h ratc.h
  61. StringMem.o:    StringMem.h DynArray.h ratc.h
  62. System.o:    System.h ratc.h
  63. Time.o:         Time.h ratc.h
  64. Positions.o:    Positions.h ratc.h
  65. Errors.o:       Errors.h Positions.h ratc.h
  66.  
  67. EiffelScan.o:    $(BASICS) EiffelScan.h 
  68. EiffelScanSource.o: $(BASICS) EiffelScanSource.h EiffelScanSource.h 
  69. ParserDrv.o:    $(BASICS) ParserDrv.h Merge.c
  70. ParserISE.o:    ParserISE.h EiffelScan.h Tree.h
  71. ParserMEY.o:    ParserMEY.h EiffelScan.h Tree.h
  72. ParserSIG.o:    ParserSIG.h EiffelScan.h Tree.h
  73. Tree.o:        $(BASICS) Tree.h yyTree.w
  74.